home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / areuh.tar / areuh / doc / areuh110.doc < prev    next >
Text File  |  1990-10-10  |  9KB  |  149 lines

  1.              USING AREUH WITH A HP110
  2.  
  3.               Michael Markov (PPC Paris 301)
  4.  
  5.  
  6. Using AREUH with an HP110 presents a variety of problems, most of which are 
  7. related to the fact that AREUH requires about 200+K of memory to run. This leaves
  8. you with 70K of EDISC for your source code, intermediate files, listing files,
  9. and anything else you may feel you absolutely have to have, such as ED110, in
  10. case you need to edit the source file, or HPILLINK to upload and download LEX
  11. files.... Keep in mind that listing files are roughly twice the size of source
  12. files, and that the object file takes some room. Needless to say, this means
  13. that you cannot keep the 150K byte AAS.EXE program in the A: drive.
  14.  
  15. Therefore, HP100 owners who still want to use AREUH for serious work must resign
  16. themselves to loading AAS.EXE from disk each time they wish to assemble a LEX
  17. file. Worse, unless they are working with source files of 20K or less, they must
  18. also resign themselves to either sending the listing file to a disk file, or to
  19. a printer. Either approach means that execution time is much slower than you
  20. would expect from the AREUH documentation. Still, my HP110 and AREUH allow me to assemble a 42K source code files about 4 minutes, while my
  21. HP71 requires over half an hour to do the same job, in spite of a 1.9 times
  22. speed-up. (Yes, I am considering the purchase of a 512K base Portable Plus with
  23. a 1 or 2 Meg RAM card, but considering the cost, maybe I would be better off
  24. with a full-size desk top machine.)
  25.  
  26. Let me hasten to say that 20K source files are quite sufficient for individual
  27. keywords. Assembling such small files is unbelievably fast, and very convenient
  28. for debugging sessions. You will have few problems assembling such files using
  29. either the compatibility mode or the modular mode. However, source code files
  30. show a definite tendency to grow: TXTSORTS, once less than 13K, is now 42K. TKS,
  31. the source for DISASMLX, grew to 77K from similar beginnings. The following
  32. material describes the work-arounds I developed to allow me to assemble such
  33. source files more or less painlessly.
  34.  
  35. Since the major space and memory waster is saving the listing file, you must ask
  36. yourself whether you need a listing file. In the compatibility mode, you can use
  37. the LIST OFF and LIST ON keywords to suppress the listing file for portions of
  38. the files that you have already assembled successfully in previous sessions.
  39. For example, with the LIST OFF suppressing most of the TKS listing, DISASMLX
  40. can be assembled in about two minutes. This is definitely worth taking advantage
  41. of -- just list the portion of the source that includes any new keyword you add
  42. to the file you are building. This will let you know if any jumps are out of
  43. range, which is the most common problem when adding a new keyword to a file, 
  44. assuming you have already tested and assembled the keyword separately. However,
  45. there always comes the time when you need a complete listing for code-packing/
  46. code review purposes. When this happens, I use the following procedure:
  47.  
  48. 1)  If your source code file is more than 20K bytes long, prepare a work disk
  49.     that contains ONLY HPILLINK, the source code and any symbol files you use,
  50.     to include the entry point files found in the AREUH disk \LIB subdirectory.
  51.     You should first format this disk, then copy the symbol files from AREUH to
  52.     the work disk with   COPY C:\LIB\*.EP D: (If you have only one drive, first
  53.     copy the files to the A: drive, then to the work disk. Next, copy any
  54.     special Symbol files  to be loaded with RDSYMB. Finally, copy the source
  55.     code file to the work disk. This may sound complicated, but if you use AREUH
  56.     frequently, you will prepare several work disks in a single session, so that
  57.     all you have to do in this step is add the source code. You can reuse such
  58.     work disks at any time by simply deleting old source and listing files. Do
  59.     not forget to add any special symbol files. When your souce file grows
  60.     beyond the size that can be edited with MEMOMAKER, you may want to add your
  61.     favorite EDitor software. While this limits the space remaining free for the
  62.     source and listing files, it is very convenient.
  63.     
  64.     You should seriously consider breaking-up your larger source code files into
  65.     smaller files (20K or less) that can be assembled from the A: drive, as
  66.     execution time suffers badly when assembling the source from mass storage.
  67.     The AREUH loader-linker will allow you to combine the resulting intermediate
  68.     files into a single large LEX file. See WRITHEAD.BAS and WRITHEAD.DOC on the
  69.     disk. These files help a lot when using the modular mode.
  70.  
  71.     If you do NOT use supported entry points, you can assemble source files of
  72.     up to about 60K from the A: drive, since you do not need to have the entry
  73.     point files in either the A: drive (current directory) or the C: drive...
  74.  
  75. 2)  Format a blank 3.5" disk in drive C:
  76. 3)  Backup your HP110 with COPY *.* C:    (from MS-DOS)
  77. 4)  Delete all files except the source code file to be assembled, and PACK.COM.
  78.     If the file is in excess of 30K or 60K (see step 1 above), delete everything
  79.     except PACK.COM since you have to assemble the source from the work disk
  80.     prepared in step 1 above.
  81. NOTE: If you use AREUH frequently, you will already have back-up disks, and you
  82.     need only back-up current work in progress.
  83. 5)  PACK the A: drive (Type PACK [Return]).
  84. 6)  You may now delete PACK.COM if you are real short of memory.
  85. 7)  EXIT MS-DOS, and press the f6 key (System Configuration).
  86. 8)  Increase the Memory allocation to 200+ Kbytes.
  87. 9)  Exit the configuration menu, and return to MS-DOS.
  88. 10) Replace the disk in your C: drive with the AREUH disk.
  89. 11) Copy any entry point files required from the C:\LIB subdirectory to the A:
  90.     drive (unless these files are available on your work disk).
  91. 11) Load AAS.EXE with C:AAS - The interactive mode is a must if you have only
  92.     one drive. Otherwise, you can use toggles documented in the README file to
  93.     more or less duplicate what follows.
  94. 12) Once the interactive menu comes up, replace the AREUH disk with your work
  95.     disk. This may be the work disk prepared in step 1, or the back-up disk
  96.     created in step 2 and 3. This disk will be used to save the listing file.
  97. 13) Now, you are ready to respond to the prompts in the interactive menu:
  98.  
  99.                    Source in drive A:      Source in drive C:
  100.     Source file :  TXTSORTS.TEX            C:TXTSORTS.TEX
  101.     Object file :  TSORT                   TSORT             output to A: drive
  102.     Listing File : C:LIST                  C:LIST            listing to disk
  103.     Cross Reference: Y                     Y                 Yes, nice to have
  104.     Page length :  88                      88                I use 8 lines per
  105.                                           inch to save paper
  106.  
  107. While assembling version 7 of the above LEX, I got an object file of 3066 bytes
  108. and a listing file of 74K bytes. The LEX itself, after conversion to HPILLINK
  109. format with the AREUH A2LEX.EXE program and downloading to the HP71 was 1513
  110. bytes long (TSORTLX7).
  111.  
  112. You can read the source from one external drive, direct the object file to the
  113. same disk, while having the AREUH disk in a second drive, and send the listing
  114. file to a third drive, assuming you can borrow one (I used a cassette drive to
  115. check this.)  This flexibility should allows HP110 users to assemble LEX files
  116. of up to 32K. 
  117.  
  118. 14) I actually work with two disk drives, which simplifies things. I keep the
  119.     AREUH disk in drive C: and the work disk in drive D:, so that I respond to
  120.     the Listing file : prompt with  D:LIST. Minor difference that makes life
  121.     somewhat easier.
  122.  
  123. 15) Now, I look at the listing file using Ed Gilbert's Editor, which I keep on
  124.     the work disk:  D:ED D:LIST     (EDit file LIST on drive D:). If you have
  125.     only one drive, you may do the same using drive C:
  126.  
  127. 16) If there are errors, edit the source file and go back to step 1. Otherwise,
  128.     put the AREUH disk in drive C: and  execute the A2LEX program:
  129.  
  130.     C:A2LEX  TSORT    This creates a new file in HPILLINK format with the LEX
  131.                       extension.
  132.  
  133. 17) Finally, you are ready to download the LEX file to your HP71 using HPILLINK:
  134.         
  135.     D:HPILLINK (or, if you have only one drive, replace the AREUH disk with your
  136.                work disk, and use C:HPILLINK)
  137.  
  138. 18) See the PCCOMM file elsewhere on this disk to findout how to transfer files
  139.     between your HP-17 and your HP110 with a minimum of effort.
  140.  
  141. NOTE: The HP-71 MAY REMAIN ON THE LOOP WHILE ALL OF THE ABOVE IS GOING ON,
  142. PROVIDED THAT YOU FIRST EXECUTE  "CONTROL OFF".
  143.  
  144. WARNING: The HP110 may tell you that your drive has a bad unit if you try any
  145. mass storage operation after the HP-71 has been the controller. This is because
  146. the HP110 usually works with 512 byte mass storage sectors, while the HP71
  147. normally uses 256 byte sectors. Reply Ignore to the problem prompt. Thereafter,
  148. you should no longer have problems.           
  149.